package module

import "time"

type RedisConf struct {
	Host         string        `json:"host" yaml:"host" comment:"哨兵模式无需传"`
	Password     string        `json:"password" yaml:"password"`
	DB           int           `json:"db" yaml:"db"`
	MaxIdle      int           `json:"maxIdle" yaml:"maxIdle"`
	MaxActive    int           `json:"maxActive" yaml:"maxActive"`
	IdleTimeout  time.Duration `json:"idleTimeout" yaml:"idleTimeout"`
	KeyPrefix    string        `json:"keyPrefix" yaml:"keyPrefix"`
	MasterName   string        `json:"masterName" yaml:"masterName" comment:"哨兵模式默认mymaster"`
	SentinelAddr []string      `json:"sentinelAddr" yaml:"sentinelAddr" comment:"哨兵模式必传 哨兵ip:port"`
	ClusterAddr  []string      `json:"clusterAddr" yaml:"clusterAddr" comment:"集群模式必传 ip:port"`
}
